/* RLlib copyright 2010 Adam White (theroguemonkey@gmail.com)
 * Licensed under GNU General Public Licence v2 or later - refer COPYING*/

#include "SDL.h"
#include "SDL_ttf.h"

SDL_Surface * C_SDL_CreateRGBSurface (int width, int height)
{
  SDL_Surface *video = SDL_GetVideoSurface();
  return SDL_CreateRGBSurface(video->flags, width, height, 32, video->format->Rmask, 
			      video->format->Gmask, video->format->Bmask, video->format->Amask);
}
  

SDL_Surface * C_TTF_RenderText_Solid(TTF_Font *font, const char *text, SDL_Color *fg)
{ 
  return TTF_RenderText_Solid(font, text, *fg);
}

SDL_Surface * C_TTF_RenderUTF8_Solid(TTF_Font *font, const char *text, SDL_Color *fg)
{
  return TTF_RenderUTF8_Solid(font, text, *fg);
}

SDL_Surface * C_TTF_RenderUNICODE_Solid(TTF_Font *font, const Uint16 *text, SDL_Color *fg)
{
  return TTF_RenderUNICODE_Solid(font, text, *fg);
}

SDL_Surface * C_TTF_RenderGlyph_Solid(TTF_Font *font, Uint16 ch, SDL_Color *fg)
{
  return TTF_RenderGlyph_Solid(font, ch, *fg);
}

SDL_Surface * C_TTF_RenderText_Shaded(TTF_Font *font, const char *text, SDL_Color *fg, SDL_Color *bg)
{
  return TTF_RenderText_Shaded(font, text, *fg, *bg);
}

SDL_Surface * C_TTF_RenderUTF8_Shaded(TTF_Font *font, const char *text, SDL_Color *fg, SDL_Color *bg)
{
  return TTF_RenderUTF8_Shaded(font, text, *fg, *bg);
}

SDL_Surface * C_TTF_RenderUNICODE_Shaded(TTF_Font *font, const Uint16 *text, SDL_Color *fg, SDL_Color *bg)
{
  return TTF_RenderUNICODE_Shaded(font, text, *fg, *bg);
}

SDL_Surface * C_TTF_RenderGlyph_Shaded(TTF_Font *font, Uint16 ch, SDL_Color *fg, SDL_Color *bg)
{
  return TTF_RenderGlyph_Shaded(font, ch, *fg, *bg);
}


SDL_Surface * C_TTF_RenderText_Blended(TTF_Font *font, const char *text, SDL_Color *fg)
{
  return TTF_RenderText_Blended(font, text, *fg);
}

SDL_Surface * C_TTF_RenderUTF8_Blended(TTF_Font *font, const char *text, SDL_Color *fg)
{
  return TTF_RenderUTF8_Blended(font, text, *fg);
}

SDL_Surface * C_TTF_RenderUNICODE_Blended(TTF_Font *font, const Uint16 *text, SDL_Color *fg)
{
  return TTF_RenderUNICODE_Blended(font, text, *fg);
}

SDL_Surface * C_TTF_RenderGlyph_Blended(TTF_Font *font, Uint16 ch, SDL_Color *fg)
{
  return TTF_RenderGlyph_Blended(font, ch, *fg);
}

